package com.yingxin.yxerp.module.dingtalk.constant;

/**
 * 企业微信开放接口网关常量
 */

public class WeComUrlConstant {

    /**
     * 获取access_token url
     * ?corpid=corpid&corpsecret=corpsecret
     */
    public static final String GET_ACCESS_TOKEN_URL =
            "https://qyapi.weixin.qq.com/cgi-bin/gettoken";

    /**
     * 上传临时素材 url
     * ?access_token=ACCESS_TOKEN&type=TYPE
     */
    public static final String UPLOAD_MEDIA_URL =
            "https://qyapi.weixin.qq.com/cgi-bin/media/upload";

    /**
     * 获取临时素材 url
     * ?access_token=ACCESS_TOKEN&media_id=MEDIA_ID
     */
    public static final String DOWNLOAD_MEDIA_URL = "https://qyapi.weixin.qq.com/cgi-bin/media/get";

    /**
     * 发送群聊消息 url
     * ?access_token=ACCESS_TOKEN
     */
    public static final String SEND_GROUP_MSG =
            "https://qyapi.weixin.qq.com/cgi-bin/appchat/send";

    /**
     * 获取部门列表 url
     * ?access_token=ACCESS_TOKEN&id=ID
     */
    public static final String GET_DEPARTMENT_LIST_URL =
            "https://qyapi.weixin.qq.com/cgi-bin/department/list";

    /**
     * 获取企业成员的userid与对应的部门ID列表
     * ?access_token=ACCESS_TOKEN
     */
    public static final String POST_USER_LIST_URL =
            "https://qyapi.weixin.qq.com/cgi-bin/user/list_id";

    /**
     * 读取成员详情
     * ?access_token=ACCESS_TOKEN&userid=USERID
     */
    public static final String GET_USER_ID_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/get";

    /**
     * 获取部门成员详情
     * ?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID
     */
    public static final String GET_DEPT_USER_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/list";

    /**
     * 获取员工花名册信息
     * ?access_token=ACCESS_TOKEN
     */
    public static final String POST_EMPLOYEE_ROSTER_LIST_URL =
            "https://qyapi.weixin.qq.com/cgi-bin/hr/get_staff_info";

    /**
     * 系统管理部的webhook地址
     */
    public static final String WEB_HOOK =
            "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=0dbac911-beab-4eee-b3cf-bcd4840e3c33";

}
